import http from '../../utils/axios'
//添加机构
export function cooperativeAgencyAdd(query: any) {
  return http.request({
    url: '/cooperative_agency/add',
    method: 'post',
    data: query
  })
}
//修改机构
export function cooperativeAgencyUpdate(query: any) {
  return http.request({
    url: '/cooperative_agency/update',
    method: 'post',
    data: query
  })
}
//删除机构
export function cooperativeAgencyDel(query: any) {
  return http.request({
    url: '/cooperative_agency/del',
    method: 'post',
    data: query
  })
}
//获取所有产品
export function productListAll(query: any) {
  return http.request({
    url: '/product/listAll',
    method: 'post',
    data: query
  })
}
//获取所有合作业务
export function agencyProjectList(query: any) {
  return http.request({
    url: 'agency_project/list',
    method: 'post',
    data: query
  })
}
//获取机构详情
export function cooperativeAgencyGetById(query: any) {
  return http.request({
    url: 'cooperative_agency/getById',
    method: 'post',
    data: query
  })
}